package com.func.infrastructure.persistent.po.activity;

import com.func.domain.activity.model.valobj.UserRaffleOrderStateVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 * UserRaffleOrder
 * </p>
 *
 * @author Simon
 * @version 2025.03.14.1.0.0
 * @description 用户抽奖记录
 * @since 2025-03-14
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserRaffleOrder {

    /** 自增ID*/
    private Long id;

    /** 用户ID*/
    private String userId;

    /** 活动ID*/
    private Long activityId;

    /** 活动名称*/
    private String activityName;

    /** 抽奖策略ID*/
    private Long strategyId;

    /** 订单ID*/
    private String orderId;

    /** 下单时间*/
    private Date orderTime;

    /** 订单状态；create-创建、used-已使用、cancel-已作废*/
    private UserRaffleOrderStateVO orderState;

    /** 创建时间*/
    private Date createTime;

    /** 更新时间*/
    private Date updateTime;
}
